package com.k.ums.controller;

import com.k.ums.model.ResponseResult;
import com.k.ums.service.SysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:
 * @Author: kt
 * @CreateTime: 2022/1/17
 */
@RestController
@RequestMapping("/menu")
public class SysMenuController {

    @Autowired
    private SysMenuService sysMenuService;

    @GetMapping("/getMenuTree")
    public ResponseResult getMenuTree() {
        return ResponseResult.success(sysMenuService.getMenuTree());
    }
}
